<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
      #h3{
      	color:red;
      }
      .b{
       color:green;
      }
      div div span{
       background-color: yellow;
      }
      
      body>span{
        background-color: purple;
      }
      
      body>div>span{
		background-color: pink;      
      }
      
      body>div>span,#h3{
		background-color:green;   
      }



</style>
</head>
<body>
 	<h3>h3-a</h3>
 	<h3 id="h3">h3-b</h3>
 	<div>div1</div>
 	<div>div2</div>
 	<div class="b">div3</div>
 	<span class="b">s1</span> <span class="b">s2</span> <span>s3</span>
 	
 	<div>
 		<span>s4</span>
 		<div><span>s5</span></div>
 	</div>
 	<div><span >s6</span></div>
 	
</body>
</html>